/*Copyright (c) 2021 Tyrael, Y. LI*/
:root{
    --bili-blue: #23ADE5;
    --bili-pink: #FB7299;
    --bili-pink-a70: rgba(251, 114, 153, 0.7);
}
@keyframes mousein {
    0% {transform: translate(0px, 50px); opacity: 0}
    100% {transform: translate(0px, 0px); opacity: 1}
}

@keyframes searchIn {
    0% {transform: translate(180px, 0px); opacity: 0; width: 0}
    100% {width: 100%; opacity: 1;}
}

@keyframes searchOut {
    0% {width: 100%; opacity: 1;}
    100% {transform: translate(180px, 0px); opacity: 0; width: 0}
}

#emoji-selection{
    border-radius: 5px;
    box-shadow: #ddd 0 0 5px;
    height: auto;
    color: var(--text1);
}

html[theme*="dark"] #emoji-selection{
    box-shadow: #222 0 0 5px;
}

#rua-input-container{
    left: 40px;
    height: 18px;
    position: relative;
}

#rua-video-info{
    height: auto;
}

#rua-danmaku{
    width: 300px;
    height: 200px;
    margin-top: 22px;

    text-align: left;
    position: relative;
}

#rua-danmaku table{
    margin: 0 auto;
}

#rua-download{
    width: 300px;
    height: 80px;
    margin-top: 22px;
}

#rua-danmaku-search-input{
    position: absolute;
    width: 0;
    overflow: hidden;
    float: right;
    height: 18px;
    padding: 0 5px;
    margin-right: 5px;
    margin-top: -2px;
    border-width: 1px;
    border-style: solid;
    border-color: #aaa;
    border-image: initial;
    border-radius: 9px;
    resize: none;
    outline: none !important;
    background-color: var(--bg1);
}

#rua-danmaku-download{
    float: right;
    user-select: none;
    cursor: pointer;
    border-radius: 5px;
    background: var(--bili-blue);
    color: #fff;
    margin-right: 5px;
    padding: 0 8px;
}

#rua-danmaku-intense{
    padding: 0 2%;
    border: 0;
    border-bottom: 2px solid var(--bili-blue);
    color: var(--text1);
    scrollbar-width:thin;
    outline: none !important;
    transition: 0.4s;
    -webkit-transition: 0.4s;
    background-color: var(--bg1);
}

#rua-danmaku-intense::-webkit-scrollbar{
    width: 6px;
    height: 6px;
}

#rua-danmaku-intense::-webkit-scrollbar-thumb{
    border-radius: 6px;
    background-color: #aaa;
}

#rua-danmaku-intense option{
    text-align: center;
}

#rua-copy-tips{
    position: absolute;
    z-index: 10000000;
    background: var(--bili-blue);
    color: #fff;
    border-radius: 5px;
    width: 150px;
    transition: 0.4s;
    text-align: center;
}

#rua-user-control-bar{
    text-align: center;
    width: 280px;
}

#rua-user-host{
    height: 82px;
}

.rua-download-block{
    border-radius: 5px;
    background: var(--bili-pink);
    height: 30px;
    width: 80px;
    float: left;
    margin: 4px;
    cursor: pointer;
}


.rua-download-block-disabled{
    opacity: 0.6 !important;
}

.rua-quality-des{
    color: #fff;
    padding-top: 6px;
    user-select: none;
}

.rua-danmaku{
    width: 205px;
    padding: 0 5px;
    text-overflow:ellipsis;
    white-space: nowrap;
    word-break: keep-all;
    overflow: hidden;
    cursor: pointer;
}

.rua-danmaku-content{
    height: 20px;
    width: 100%;
    display: flex;
    position: absolute;
    font-size: 13px;
}

.rua-danmaku-content:hover{
    background: #ffebee;
}

.rua-danmaku-content:hover .rua-danmaku-copy{
    background: #ffebee;
    color: var(--bili-pink);
    opacity: 1;
}

html[theme*="dark"] .rua-danmaku-time:hover, html[theme*="dark"] .rua-danmaku-content:hover, html[theme*="dark"] .rua-danmaku-content:hover .rua-danmaku-copy{
    background: var(--Ga2);
}


.rua-danmaku-time:hover{
    background: #ffebee;
    color: var(--bili-blue);
    opacity: 1;
}

.rua-danmaku-copy{
    cursor: pointer;
    opacity: 0;
    min-width: 26px;
}

/*.rua-danmaku-copy:hover{*/
/*    color: var(--bili-blue);*/
/*    opacity: 1;*/
/*}*/

.rua-danmaku-time{
    min-width: 45px;
    font-size: 12px;
    white-space: nowrap;
    word-break: keep-all;
    cursor: pointer;
    padding: 1.5px 5px 0 2px;
}

.rua-danmaku-user-info{
    width: 300px;
    height: 140px;
    position: fixed;
    border-radius: 5px;
    z-index: 10000000;
}

.rua-danmaku-user-host{
    top: 20px;
    width: 300px;
    height: 100px;
    position: absolute;
    background: var(--bg1);
    border-radius: 5px;
    box-shadow: rgb(127 127 127) 0 0 9px;
    user-select: none;
    animation-name: mousein;
    animation-duration: 500ms;
    animation-fill-mode: forwards;
}

html[theme*="dark"] .rua-danmaku-user-host{
    box-shadow: var(--Ga2) 0 0 9px;
}

.rua-video-right-info{
    line-height: 80px;
    font-size: 14px;
}

.rua-cover{
    border-radius: 5px;
    background: var(--bili-pink);
    color: #fff;
    margin: 5px 19px;
    cursor: pointer;
    transition: 0.4s;
}

.rua-cover:hover{
    background: var(--bili-pink-a70);
}

.rua-user{
    width: 250px;
    height: 50px;
    margin: 10px 0 10px 20px;
    display: flex;
}

.rua-user-avatar{
    width: 50px;
    height: 50px;
    background-image: url("");
    background-size: cover;
    border-radius: 50%;
}

.rua-user-avatar img{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.rua-danmaku-search-in{
    animation-name: searchIn;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
}

.rua-danmaku-search-out{
    animation-name: searchOut;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
}

.rua-video-info-copy{
    cursor: pointer;
}

html[theme*="dark"] a:active, a:hover{
    color: var(--bili-blue);
}